package com.xiaobaibai.units;

import com.alibaba.fastjson.JSON;
import com.xiaobaibai.entity.IndexDetail;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

public class IndexDetailListSortUnit implements Comparator<IndexDetail> {

    //大的排在第一位
    @Override
    public int compare(IndexDetail o1, IndexDetail o2) {
        return o2.getSort()-o1.getSort();
    }

}
